<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:decorate template="/resources/template/modelo.xhtml">
        <ui:define name="centro">
            <f:view encoding="ISO-8859-1">  
                <h:form>
                    <p:panel  header="Editar Instituição:" style="margin-bottom:10px;">  
                        <h:panelGrid columns="2">
                            <h:outputText value="ID" />
                            <h:outputText value="#{instituicaoBean.instituicao.id}"/>
                            <h:outputText value="Nome da Instituição" />
                            <h:inputText value="#{instituicaoBean.instituicao.nome}"></h:inputText>
                            <h:outputText value="Estado: " />
                            <p:selectOneMenu value="#{instituicaoBean.instituicao.estado}">
                                <f:selectItem itemLabel="AC" itemValue="AC" />
                                <f:selectItem itemLabel="AL" itemValue="AL" />
                                <f:selectItem itemLabel="AP" itemValue="AP" />
                                <f:selectItem itemLabel="AM" itemValue="AM" />
                                <f:selectItem itemLabel="BA" itemValue="BA" />
                                <f:selectItem itemLabel="CE" itemValue="CE" />
                                <f:selectItem itemLabel="DF" itemValue="DF" />
                                <f:selectItem itemLabel="ES" itemValue="ES" />
                                <f:selectItem itemLabel="GO" itemValue="GO" />
                                <f:selectItem itemLabel="MA" itemValue="MA" />
                                <f:selectItem itemLabel="MT" itemValue="MT" />
                                <f:selectItem itemLabel="MS" itemValue="MS" />
                                <f:selectItem itemLabel="MG" itemValue="MG" />
                                <f:selectItem itemLabel="PR" itemValue="PR" />
                                <f:selectItem itemLabel="PB" itemValue="PB" />
                                <f:selectItem itemLabel="PA" itemValue="PA" />
                                <f:selectItem itemLabel="PE" itemValue="PE" />
                                <f:selectItem itemLabel="PI" itemValue="PI" />
                                <f:selectItem itemLabel="RJ" itemValue="RJ" />
                                <f:selectItem itemLabel="RN" itemValue="RN" />
                                <f:selectItem itemLabel="RS" itemValue="RS" />
                                <f:selectItem itemLabel="RO" itemValue="RO" />
                                <f:selectItem itemLabel="RR" itemValue="RR" />
                                <f:selectItem itemLabel="SC" itemValue="SC" />
                                <f:selectItem itemLabel="SE" itemValue="SE" />
                                <f:selectItem itemLabel="SP" itemValue="SP" />
                                <f:selectItem itemLabel="TO" itemValue="TO" />
                                <f:selectItem itemLabel="ND" itemValue="ND" />
                            </p:selectOneMenu>
                            <h:outputText value="Município" />
                            <h:inputText value="#{instituicaoBean.instituicao.municipio}"></h:inputText>

                            <h:commandButton action="#{instituicaoBean.editarInstituicao}" value="Editar"   />
                            <h:commandButton action="/index" value="Cancelar" />

                        </h:panelGrid> 
                    </p:panel>
                </h:form>
            </f:view>  
        </ui:define>


    </ui:decorate>
</html>